.icon {
  width: 100%;
  height: 100%;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}


.xg-player-container {
  --black-color: #000;
  --white-color: #fff;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  & video {
    width: inherit;
    height: inherit;
    object-fit: inherit;
  }
  & .poster-play-btn-wrap {
    position: absolute;
    width: 70px;
    height: 70px;
    top: 50%;
    left: 50%;
    cursor: pointer;
    transform: translate(-35px, -35px);
    background-color: var(--black-color);
    border-radius: 50%;
    opacity: .6;
    &:hover {
      opacity: 1;
    }
    & .icon-poster-player {
      fill: hsla(0, 0%, 100%, .7);
    }
  }

  & .controls-wrap {
    position: absolute;
    width: 100%;
    bottom: -40px;
    padding: 0 8px;
    z-index: 1;
    box-sizing: border-box;
    color: var(--white-color);
    user-select: none;
    background-image: linear-gradient(180deg,transparent,rgba(0,0,0,.37),rgba(0,0,0,.75),rgba(0,0,0,.75));
    transition: all .2s ease-in-out;
    & .up {
      & .slider {
        width: 100%;
      }
    }
    & .down {
      display: flex;
      justify-content: space-between;
      opacity: 0;
      & .control-icon-wrap {
        width: 40px;
        height: 40px;
        cursor: pointer;
        margin-right: 8px;
      }
      & .left {
        display: flex;
        align-items: center;
      }
      & .right {
        display: flex;
        align-items: center;
        & .select-wrap {
          margin-right: 8px;
          outline: none;
        }
      }
    }
  }

  & .controls-wrap-show {
    bottom: 0;
    & .down {
      opacity: 1;
    }
  }
}
